#include <iostream>
#include <pthread.h>

class Andrew
{
	public:
	void *func()
	{
		std::cout << "yeeeeeeeesssss!!!!\n";
	}
	private:
		const in a = 5;
};

void *lMF(void* obj)
{
	Andrew *ptr = reinterpret_cast<Andrew *>(obj);
	return ptr->func();
}

		mem_fun(&Andrew::func)

int main()
{
	Andrew an;
	pthread_t tr;
	pthread_create(&tr, NULL, lMF, &an);
	pthread_join(tr,NULL);
       return 0;	
}

